﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Xml;

namespace SIMA.Core.Data.Archive
{
    public class Info
    {
        #region Fields

        private string hostName = string.Empty;
        private string ipAddress = string.Empty;
        private string directoryPath = string.Empty;
        private string fileName = string.Empty;
        private static XmlDocument xmldoc;

        #endregion

        #region Private Methods

        private void Init()
        {
            xmldoc = new XmlDocument();
            directoryPath = Environment.SpecialFolder.History.ToString();
            GetIpOfLocalPc();
        }

        private void GetIpOfLocalPc()
        {
            hostName = Dns.GetHostName();
            IPHostEntry ipEntry = Dns.GetHostEntry(hostName);

            IPAddress[] addresses = ipEntry.AddressList;

            ipAddress = addresses[addresses.Length - 1].ToString();
        }

        #endregion

        #region Public Methods

        private static void OpenSession()
        {
            xmldoc = new XmlDocument();
            
        }

        public static void RegisterScreen(string screenName)
        {

        }

        #endregion

    }
}
